package cn.how2go.net.server.bean;


import cn.how2go.net.server.util.BinaryUtil;

/**
 * Created by Administrator on 2019/3/7.
 */
public class ByteMessage {
    //数据包来历
    private String action;
    private byte[] bytes;

    public ByteMessage() {
    }

    public ByteMessage(String action, byte[] bytes) {
        this.action = action;
        this.bytes = bytes;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    @Override
    public String toString() {
        return "["  + action + "] " + BinaryUtil.ToHexFormatString(bytes) ;
    }
}
